package com.lzj.system.domain.bo;

import com.lzj.common.core.validate.AddGroup;
import com.lzj.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.lzj.common.core.domain.BaseEntity;

/**
 * 通用查询业务对象 sys_com_query
 *
 * @author lzj
 * @date 2024-10-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysComQueryBo extends BaseEntity {
    
    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 关键字
     */
    @NotBlank(message = "关键字不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 说明
     */
    private String remark;

    /**
     * sql语句
     */
    @NotBlank(message = "sql语句不能为空", groups = { AddGroup.class, EditGroup.class })
    private String customSql;

    /**
     * 配置项
     */
    private String config;


}
